package com.ioc.autowried;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author cyt
 * @create 2020-08-01 10:28
 */
@Component
public class person {

    @Autowired
    private Cup cup;

    @Override
    public String toString() {
        return "person{" +
                "cup=" + cup +
                '}';
    }

    public person() {
    }
}
